let mixins = {
  filters:{
    currency(oldData){
      if(oldData){
        oldData = '' + oldData;
        if(oldData.indexOf('.') >= 0){
          let dataArr = oldData.split('.');
          return `${dataArr[0]}.${dataArr[1].padEnd(2, '0')}`
        }else {
          return `${oldData}.00`
        }
      }else {
        return 0
      }
    }
  }
}

export default mixins
